package o;

import android.app.Activity;
import android.text.TextUtils;
import java.util.LinkedHashMap;

public class cvo {
    private static fmz ˏ;

    public static void ॱ(String str, String str2, int i, String str3, Activity activity) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        if ("250301".equals(str)) {
            linkedHashMap.put("hotword", str2);
            linkedHashMap.put("labeltitle", str3);
        } else if ("250601".equals(str)) {
            linkedHashMap.put("sqcWord", str2);
            linkedHashMap.put("inputword", str3);
        } else if ("250501".equals(str)) {
            linkedHashMap.put("qRecommendWord", str2);
            linkedHashMap.put("inputword", str3);
        } else {
            cux.ˏ.ˏ("Utils", "The BI viewName does not exist.");
            return;
        }
        linkedHashMap.put("position", String.valueOf(i));
        linkedHashMap.put("serviceType", String.valueOf(dgm.ˎ(activity)));
        dgh.ˋ(str, linkedHashMap);
    }

    public static int ˊ() {
        if (ˏ == null) {
            ˏ = new fmz(ContentManager.getInstant().getContext(), 0);
        }
        return azb.ॱ(ˏ, 0);
    }

    public static void ˎ(String str, String str2, int i) {
        if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
            cux.ˏ.ˊ("Utils", "reportTabClick, tabName = " + str2 + ", tabId = " + str + " serviceType = " + i);
            return;
        }
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("tabname", str2);
        linkedHashMap.put("tabid", str);
        linkedHashMap.put("service_type", String.valueOf(i));
        dgh.ˋ("homepage_buttomtab_click", linkedHashMap);
        if (Logger.ˎ()) {
            cux.ˏ.ˋ("Utils", "reportTabClick, tabName = " + str2 + ", tabId = " + str + " serviceType = " + i);
        }
    }
}
